package com.sherlockHolmes.init.service.impl;

import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sherlockHolmes.init.entity.dao.ApplyCondition;
import com.sherlockHolmes.init.service.ApplyConditionService;
import com.sherlockHolmes.init.mapper.ApplyConditionMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author 四月一日 君寻
* @description 针对表【apply_condition(申请条件表)】的数据库操作Service实现
* @createDate 2024-03-27 16:59:06
*/
@Service
public class ApplyConditionServiceImpl extends ServiceImpl<ApplyConditionMapper, ApplyCondition>
    implements ApplyConditionService{
    @Resource
    private ApplyConditionMapper applyConditionMapper;
    @Override
    public ApplyCondition selectById(Integer conditionId) {
        if(ObjectUtil.isNotEmpty(conditionId)){
            return applyConditionMapper.selectById(conditionId);
        }
        return null;
    }
}




